<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<title><ui:insert name="title" /></title>
</h:head>

<h:body>

	<table style="width: 100%;">
		<tr style="height: 100px">
			<td id="top" colspan="2" style="background-color: #C6BB8D;"><h:form
					id="userNameAndTimeForm">
					<h:panelGrid columns="3"
						style="margin-bottom:auto; margin-top:auto">
						<p:outputLabel value="#{loginBean.funcionario.dsNome}" />
						<p:clock pattern="dd/MM/yyyy HH:mm:ss" mode="server" />
						<p:commandLink value="Sair" action="#{loginBean.doLogout}"
							ajax="false" />
					</h:panelGrid>
				</h:form></td>
		</tr>

		<tr style="height: 500px">
			<td style="background-color: #A9916F; width: 20%; max-width: 250px;">
			
				<h:form>
			
					<p:menu>
						<p:submenu label="Comandas">
							<p:menuitem value="Abrir Comanda" action="abrir-comanda.xhtml?faces-redirect=true" />
							<p:menuitem value="Encerrar Comanda" action="encerrar-comanda.xhtml?faces-redirect=true" />
							<p:menuitem value="Consultar Comanda" action="consultar-comanda.xhtml?faces-redirect=true" />
						</p:submenu>
						<p:submenu label="Pedidos">
							<p:menuitem value="Registrar Pedido" action="registrar-pedido.xhtml?faces-redirect=true" />
							<p:menuitem value="Listar Pedidos" action="listar-pedidos.xhtml?faces-redirect=true" />
						</p:submenu>
						<p:submenu label="Pagamentos">
							<p:menuitem value="Efetuar Pagamento" action="efetuar-pagamento.xhtml?faces-redirect=true" />
						</p:submenu>
					</p:menu> 
				
				</h:form>
				
			</td>

			<td
				style="background-color: #D2CDB0; width: 80%; margin-bottom: 10px; margin-top: 10px;">

				<ui:insert name="content" />

			</td>

		</tr>

		<tr style="height: 50px">
			<td colspan="2"
				style="background-color: #4B4E39; text-align: center;"><p:outputLabel
					value="© Copyright 2014-2014 EComanda" style="color:#FFFFFF" /></td>
		</tr>

	</table>

</h:body>

</html>